# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: François Charette <firmicus ατ gmx δοτ net>

pkgname=perl-config-tiny
pkgver=2.29
pkgrel=1
pkgdesc="Read/Write .ini style files with as little code as possible "
arch=('any')
url="https://search.cpan.org/dist/Config-Tiny"
license=('GPL' 'PerlArtistic')
depends=('perl>=5.10')
options=('!emptydirs')
source=(https://search.cpan.org/CPAN/authors/id/R/RS/RSAVAGE/Config-Tiny-$pkgver.tgz)
sha256sums=('3de79b0ea03a8d6a93e9d9128fe845fb556222b14699a4f6f0d5ca057ae3333b')

build() {
  cd  "$srcdir"/Config-Tiny-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd  "$srcdir"/Config-Tiny-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
